﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Micro.Core.ApiConsumer.ActionAttributes;
using Micro.Core.ApiConsumer.Enums;
using Micro.Core.ApiConsumer.ParameterAttributes;

namespace ApiConsumer.Test
{
    [HttpHost("http://localhost:8888")]
    public interface UserApi : IDisposable
    {
        [RequestMapping(Value = "/b")]
        string SayHello();

        [RequestMapping(Value = "/consultest/api/values?&id={id}")]
        dynamic SayGood([RequestParam]int id);

        [RequestMapping(Value = "/consultest/api/values?&id={id}", Method = RequestMethod.POST)]
        string SayGood1([RequestParam]int id, [JsonBody] object model);
    }
}
